import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import router from './router/index.js'
import axios from 'axios'

const app = createApp(App)
app.use(ElementPlus)
app.use(router)
// app.use(axios)
app.mount('#app')
// 装配axios
//您使用的是 vue 3 并且 axios 不是插件(我们不能像app.use()那样注册它)它是一个 javascript 模块
app.config.globalProperties.axios=axios

// //将axios 赋值给ajax
// app.prototype.$ajax = axios;
